 var map = null;
 	var params = null;
 	var pp = null; 


 	function load( params ) {
    			
    		
    			params.id = 'google_map';
    			params.lx = params.lx || 50.064192;
    			params.ly = params.ly || 19.954605;
    			params.tmp = params.tmp || 0;
    			
    			if( GBrowserIsCompatible() ) {
    				
    				map = new GMap2(document.getElementById( params.id ));
    				var center = new GLatLng(params.lx, params.ly);
    				map.setCenter(center, 13);
    				map.addControl(new GSmallMapControl());
    				map.addControl(new GMapTypeControl());
    				
    				if(!params.tmp)
    					map.addControl(new google.maps.LocalSearch(), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));

    				var flag;
    				
    				if(!params.tmp)
    					flag = true;
    				else
    					flag = false;
    				

    				var icon = new GIcon();  
    				icon.image = baseUrl + "/public/images/marker.png";  
    				icon.shadow = "";  
    				icon.iconSize = new GSize(71, 76);  
    				icon.shadowSize = new GSize(22, 20);  
    				icon.iconAnchor = new GPoint(4, 72);  
    				icon.infoWindowAnchor = new GPoint(5, 1); 
    				
					  var baseIcon = new GIcon();
					  baseIcon.image = "http://www.google.com/mapfiles/gadget/markerSmall80.png";
					  baseIcon.shadow = "http://www.google.com/mapfiles/gadget/shadow50Small80.png";
					  baseIcon.iconSize = new GSize(16, 27);
					  baseIcon.shadowSize = new GSize(30, 28);
					  baseIcon.iconAnchor = new GPoint(8, 27);
					  baseIcon.infoWindowAnchor = new GPoint(5, 1);

    				
    		        var marker = new GMarker(center, {draggable: flag, icon: icon });
    				
//    		        GEvent.addListener(JF.Maps.map, "click", function() {
//    		        	console.log(1);
//    		        });
    		
    		        GEvent.addListener(marker, "dragstart", function() {
    		        	map.closeInfoWindow();
    		        });
    		
    		        GEvent.addListener(marker, "dragend", function(evt) {
    					pp = evt;
    		        });
    		
    		       map.addOverlay(marker);

    			}
    		}
 	
 	function save()
	{
 		
		var loc = ( pp ) ? pp : map.getCenter();
		return loc.y +';'+ loc.x;
	}